package cn.edu.scau.cmi.guihao.abstractFactory;

import cn.edu.scau.cmi.guihao.domin.abstractFactory.PICC;
import cn.edu.scau.cmi.guihao.domin.abstractFactory.PingAn;
import cn.edu.scau.cmi.guihao.interProgramming.abstractFactory.InsuranceCompany;

public class InsuranceFactory {
	public static InsuranceCompany createInsuranceOnFactory(String company) {
		if(company=="PICC") {
			return new PICC();
		}else if(company=="PingAn") {
			return new PingAn();
		}else {
			return null;
		}		
	}
}
